package view.events;
import flash.events.Event;

enum E_KeyboardInteractionType
{
	KEY_UP;
	KEY_DOWN;
}

/**
 * @author Damien Mabin
 */
class LevelEditorViewKeyboardEvent extends Event
{
	public static var EVENT : String = "LevelEditorViewKeyboardEvent";
	
	public var m_Type 		: E_KeyboardInteractionType;
	public var m_KeyCode 	: UInt;
	
	public function new(_Type:E_KeyboardInteractionType, _KeyCode:UInt) 
	{
		super(EVENT, true);
		m_KeyCode = _KeyCode;
		m_Type = _Type;
	}

	override public function clone():Event
    {
		var res : LevelEditorViewKeyboardEvent = new LevelEditorViewKeyboardEvent(m_Type, m_KeyCode);
        return res;
    }
	
	override public function toString():String
    {
        return EVENT + "(" + m_Type + ")";
    }
}